//详情页面底部客服,店铺,收藏,加入购物车组件
<template>
  <div class="details-bottom-bar">
    <!-- 客服,店铺,收藏 -->
    <div class="kf-dp-sc">
      <div class="kf">
        <span class="kf-bg"></span>
        <div class="kf-txt">客服</div>
      </div>
      <div class="dp">
        <span class="dp-bg"></span>
        <div class="dp-txt">店铺</div>
      </div>
      <div class="sc">
        <span class="sc-bg"></span>
        <div class="sc-txt">收藏</div>
      </div>
    </div>
    <!-- 加入购物车 -->
    <div class="add-card" @click="addCard">加入购物车</div>
    <!-- 购买 -->
    <div class="buy" @click="buy">购买</div>
  </div>
</template>
<script>
export default {
  data() {
    return {};
  },
  created() {},
  methods: {
    //购买的方法
    buy() {},
    //加入购物车
    addCard() {}
  },
  computed: {},
  components: {}
};
</script>
<style lang="scss" scoped>
.details-bottom-bar {
  position: fixed;
  width: 100%;
  left: 0;
  bottom: 0;
  height: 49px;
  display: flex;
  .kf-dp-sc {
    flex: 2;
    display: flex;
    .kf,
    .dp,
    .sc {
      flex: 1;
      font-size: 12px;
      text-align: center;
    }
    .kf .kf-bg,
    .dp .dp-bg,
    .sc .sc-bg {
      display: inline-block;
      width: 22px;
      height: 22px;
      margin: 6px auto 0px;
      background: url("~assets/img/detail/detail_bottom.png") 0 0/100%;
    }
    .kf .kf-bg {
      background-position: 0 -54px;
    }
    .dp .dp-bg {
      background-position: 0 -98px;
    }
  }
  .add-card {
    padding: 0 4px;
    text-align: center;
    line-height: 49px;
    background: #ffde0f;
    font-weight: bold;
    font-size: 16px;
  }
  .buy {
    flex: 1;
    line-height: 49px;
    text-align: center;
    color: white;
    font-weight: bold;
    font-size: 16px;
    background: #ff789a;
  }
}
</style>
